package mode.singleton.meiju;

/**
 * 枚举单例模式测试
 *
 * @author xjx
 * @date 2023/7/17 16:20
 */
public class MainTest {

    public static void main(String[] args) {
        DataSourceDemo source = SingletonDemoEnum.mysql.getSource();
        DataSourceDemo source1 = SingletonDemoEnum.mysql.getSource();
        System.out.println(source == source1);
    }
}
